﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace crm_data
{
    [Table("basics_order_detail")]
    public class OrderDetail : Entity
    {
        #region Model 实体属性

        /// <summary>
        /// 商品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 商品价格
        /// </summary>
        public decimal ProductPrice { get; set; }
        /// <summary>
        /// 商品条码 
        /// </summary>
        public string ProuductBarCode { get; set; }
        /// <summary>
        /// 折扣比例
        /// </summary>
        public int DiscountRate { get; set; }
        /// <summary>
        /// 折扣金额
        /// </summary>
        public decimal DiscountAmount { get; set; }
        /// <summary>
        /// 购买数量
        /// </summary>
        public int Number { get; set; }
        /// <summary>
        /// 小计金额
        /// </summary>
        public decimal Subtotal { get; set; }
        /// <summary>
        /// 客户商品备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 订单标识
        /// </summary>
        public Guid OrderGuid { get; set; }

        #endregion Model 实体属性

        /// <summary>
        /// 订单信息
        /// </summary>
        public virtual Order Order { get; set; }
    }
}
